const {
	Backend,
	Joi
} = require('dx-router-admin');

module.exports = class  Teacher extends Backend {
	constructor(ctx) {
		super(ctx);
		this.multiFields = [];
		this.dto = {
			name: Joi.string().required().error(new Error('姓名不能为空'))
		};
	}
	async get(param){
		return await this.currentService.getTeacher(param);
	}
};